package com.snap.awesomeserial.bean;

import java.io.Serializable;

import io.protostuff.Tag;

public class NAAction implements Serializable {

    @Tag(1)
    private int type;//0.等待 1.抽取 2.导入

    @Tag(2)
    private int delay;//等待时间 以秒为单位

    @Tag(3)
    private int port;//孔号  A孔=0 B孔=1

    @Tag(4)
    private int roomNo;//仓室号

    @Tag(5)
    private int capacity;//容量

    @Tag(6)
    private int velocity;//速率  0快速240；1中等120；2缓慢60；

    public NAAction(int port, int roomNo, int type, int capacity, int velocity) {
        this.port = port;
        this.roomNo = roomNo;
        this.type = type;
        this.capacity = capacity;
        this.velocity = velocity;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getDelay() {
        return delay;
    }

    public void setDelay(int delay) {
        this.delay = delay;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(int roomNo) {
        this.roomNo = roomNo;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public int getVelocity() {
        return velocity;
    }

    public void setVelocity(int velocity) {
        this.velocity = velocity;
    }
}
